package com.item.service;

import com.item.dao.UnreadMapper;
import com.item.dao.model.Unread;
import com.item.dao.model.UnreadExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UnreadService {
    @Autowired
    private UnreadMapper unreadMapper;

    private static final Logger logger = Logger.getLogger(UnreadService.class);

    public int countByExample(UnreadExample example) {
        return this.unreadMapper.countByExample(example);
    }

    public Unread selectByPrimaryKey(String userid) {
        return this.unreadMapper.selectByPrimaryKey(userid);
    }

    public List<Unread> selectByExample(UnreadExample example) {
        return this.unreadMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String userid) {
        return this.unreadMapper.deleteByPrimaryKey(userid);
    }

    public int updateByPrimaryKeySelective(Unread record) {
        return this.unreadMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Unread record) {
        return this.unreadMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(UnreadExample example) {
        return this.unreadMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(Unread record, UnreadExample example) {
        return this.unreadMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(Unread record, UnreadExample example) {
        return this.unreadMapper.updateByExample(record, example);
    }

    public int insert(Unread record) {
        return this.unreadMapper.insert(record);
    }

    public int insertSelective(Unread record) {
        return this.unreadMapper.insertSelective(record);
    }
}